<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="InvasiveSpecies.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Invasive Cafe - <%= Html.Encode(((InvasiveSpecies.Models.Game)ViewData.Model).Name) %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%= Html.Encode(((Game)ViewData.Model).Name) %></h2>
    
    <object width="800" height="600"
    data="data:application/x-silverlight-2," 
    type="application/x-silverlight-2" >
    <param name="source" value="Content/Games/<%= ((Game)ViewData.Model).Name.Replace(' ','-') %>.xap"/>
</object>

    
    <% if (Request.IsAuthenticated)
       { %>
    <p>You'll get <%= Html.Encode(((Game)ViewData.Model).Points)%> rep points for playing this game.</p>
    <% } %>
    <p><%= Html.Encode(((Game)ViewData.Model).Description) %></p>

</asp:Content>
